package com.itheima.service;

import com.itheima.entity.Result;
import com.itheima.pojo.Order;
import com.itheima.pojo.Setmeal;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderService {
    /**
     * 用户预约
     * @param map
     * @return
     */
    Result order(Map<String, String> map) throws Exception;

    /**
     * 根据id查询预约详情
     * @param id
     * @return
     */
    Order findById(Integer id);

    List<Map<String,Object>> findByTelephone(String telephone);

    List<Map<String, Object>> findByTelephoneByTime(String telephone, String startTime, String endTime);

    Setmeal findSetmealByOrderId(Integer id);

    Map<String,Object> findOrderInfoByOrderId(Integer id);
}
